<?php

use Phinx\Migration\AbstractMigration;

class AddIsDeleteColumnInChatTable extends AbstractMigration
{
    public function up()
    {
        $this->table("chat")
            ->addColumn("is_delete", "enum", [
                'values' => "yes,no",
                'default' => "no",
                'comment' => "是否删除",
                'null' => false
            ])->save();
    }

    public function down()
    {
        $this->table("chat")->removeColumn("is_delete")->save();
    }
}
